import request from '@/utils/request'

// 查询饮食和营养关联列表
export function listNutritionBinding(query) {
  return request({
    url: '/manage/nutritionBinding/list',
    method: 'get',
    params: query
  })
}

// 查询饮食和营养关联详细
export function getNutritionBinding(id) {
  return request({
    url: '/manage/nutritionBinding/' + id,
    method: 'get'
  })
}

// 新增饮食和营养关联
export function addNutritionBinding(data) {
  return request({
    url: '/manage/nutritionBinding',
    method: 'post',
    data: data
  })
}

// 修改饮食和营养关联
export function updateNutritionBinding(data) {
  return request({
    url: '/manage/nutritionBinding',
    method: 'put',
    data: data
  })
}

// 删除饮食和营养关联
export function delNutritionBinding(id) {
  return request({
    url: '/manage/nutritionBinding/' + id,
    method: 'delete'
  })
}
